import babel from "@rollup/plugin-babel";
import resolve from '@rollup/plugin-node-resolve';
import extensions from 'rollup-plugin-extensions';
import { terser } from "rollup-plugin-terser";


export default {
    input: "src/index.ts",
    output: {
        file: "release/echarts-relate.js",
        format: "umd",
        name: "echartsRelate"
    },
    plugins: [
        extensions({
            extensions: ['.tsx', '.ts', '.jsx', '.js'],
        }),
        resolve(),
        terser(),
        babel({
            babelHelpers: "bundled",
            extensions: [
                ".ts"
            ],
        }),
    ]
};
